import {ApiProperty, PartialType} from '@nestjs/swagger';
import { CreateProjectDto } from './create-project.dto';
import {IsNotEmpty, IsNumberString} from "class-validator";

export class UpdateProjectDto extends PartialType(CreateProjectDto) {
    @ApiProperty({ description: '项目id', required: true })
    @IsNumberString({}, { message: 'id 类型错误' })
    @IsNotEmpty()
    id: number
}
